#执行
case ${action} in
    'status') status; ;;
    'terminate') terminate; ;;
    'startup') startup; ;;
    'restart') restart; ;;
    'reload') reload; ;;
    'sshStatus') sshCheck; sshStatus; ;;
    'sshTerminate') sshCheck; sshTerminate; ;;
    'sshStartup') sshCheck; sshStartup; ;;
    'sshRestart') sshCheck; sshRestart; ;;
    'sshReload') sshCheck; sshReload; ;;
    *) logger "Unknown action ${action}."; exit 1; ;;
esac